package com.video.system.controller;

import com.video.server.domain.TestDemo;
import com.video.server.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;



@RestController
public class TestController {
    @Resource
    private TestService testService;

    @RequestMapping("/test")
    public List<TestDemo> test(){
        List<TestDemo> tests = testService.list();
        return tests  ;
    }

}
